<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	
	<title>{$pageTitle}</title>
	
	<!-- head --><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	{include file="head.tpl"}
	
</head>

<body>

<!-- body_js -->
{include file="body_js.tpl"}

	<div id="wrap">
		
		<!-- header -->
		{include file="header.tpl"}
		
		<div id="body">
			
			<div id="body_left">
			
				<!-- breadcrumbs -->
				{include file="breadcrumbs.tpl"}
				
				{if $unknownMember eq "yes"}
					<h1> {l s='Miembro desconocido?'} </h1>
					<p>{l s='Este miembro no existe!'}</p>
				{else}
					<h1> {$username} </h1>
					
					{if $username eq $session_username}
					<p><a href="{$smarty.const.BASE_URL}edit-account.php">{l s='Editar perfil'}</a></p>
					{/if}
					
					<div style="margin: 0 0 15px 0; font-size: 1.1em;">
						{if $photo ne ""}
						<div class="member_photo">
							<img class="member" src="{$smarty.const.BASE_URL}{$photo}" alt="Poza lui {$username}" />
						</div>
						{/if}
						<div class="member_details">
							<table cellpadding="0" cellspacing="0" width="300">
									<tr>
											<td valign="top" align="left" style="width:120px;">
													<strong>{l s='Nombre:'}</strong>
											</td>
											<td valign="top" align="left">
													{$fullname}
											</td>
									</tr>
									{if $username eq $session_username or $session_admin == 1}
										<tr>
											<td valign="top" align="left" style="width:120px;">
													<strong>E-mail:</strong>
											</td>
											<td valign="top" align="left">
													{$email}
											</td>
									</tr>
									{/if}
									<tr>
											<td valign="top" align="left">
													<strong>{l s='Fecha de registro:'}</strong>
											</td>
											<td valign="top" align="left">
													{$memberSince}
											</td>
									</tr>
									<tr>
											<td valign="top" align="left">
													<strong>{l s='Ultimo acceso:'}</strong>
											</td>
											<td valign="top" align="left">
													{$lastLogin}
											</td>
									</tr>
							</table>
						</div>
						<div class="clearer"></div>
					</div>
					{if $username eq $session_username}
					<h1>{l s='Para tu blog o página web'}</h1>
					<div style="background: #eee;margin-bottom:15px; padding:5px;">
						<div style="margin-bottom:3px;">
						{l s='Copia el código de abajo en tu página web para obtener una lista de los últimos poemas'}
						</div>
						<div>
							<strong>{l s='Contenido'} </strong> 
							<select onchange="javascript:poem_share_code_update('{$username}');" id="type_box" style="font-size:10px; width:100px;">
								<option value="mine">{l s='Mis poesías'}</option>
								<option value="all">{l s='Todas las poesías'}</option>
							</select>
							<strong>{l s='Mostrar poesías'} </strong> 
							<select onchange="javascript:poem_share_code_update('{$username}');" id="number_box" style="font-size:10px; width:100px;">
								<option value="5">5</option>
								<option value="10" selected="selected">10</option>
								<option value="15">15</option>
								<option value="20">20</option>
								<option value="25">25</option>
								<option value="30">30</option>
							</select>
						</div>
						<div>
						<input id="code_box" onclick="javascript:this.select();" style="width: 590px;" value='<ul id="crazypoems_list"></ul><script src="http://www.crazypoems.net/js/share_poems_list.js" type="text/javascript"></script><script src="http://www.crazypoems.net/share_poems_data.php?author={$username}&amp;limit=10" type="text/javascript"></script>' />
						</div>
						
					</div>
					{/if}
					
         			<h1>{l s='Poesías escritas por'} {$username} ({$userPoemsCount})</h1>
					{if $userPoems eq ""}
							<p> {$username} {l s='no ha escrito ninguna poesía'} </p>
					{else}
					<ul class="asterix">
						{section name=poem loop=$userPoems}
							<li><a href="{$userPoems[poem].link}">{$userPoems[poem].title}</a></li>
						{/section}
					</ul>
					{/if}
				{/if}
				
				<!-- no ad here -->
				
			</div>
			<div id="body_right">
			  <!-- body_right -->
				{include file="body_right.tpl"}
			</div>
			<div class="clearer"></div>
		</div>
	</div>
	<!-- footer -->
	{include file="footer.tpl"}
</body>
</html>
